
import axios from 'axios'
import { request, post, get } from "@/utils/request";
class reachPipelineApi {
  /**
  * @description: 新增短信模板
  * @param {*}
  * @return {*}
  */
   addReach(data) {
    let url = '/reach/reachSmsTemplateEntity/save'
    return request(url, data)
  }


  /**
  * @description: 删除短信模板
  * @param {*}
  * @return {*}
  */
   delSmsTemplate(data) {
    let url = '/reach/reachSmsTemplateEntity/del'
    return request(url, data)
  }

  /**
  * @description: 新增or编辑发件人
  * @param {*}
  * @return {*}
  */
   saveOrUpdateEmailSender(data) {
    let url = '/reach/emailSenderInfoEntity/saveOrUpdate'
    return request(url, data)
  }

  /**
  * @description: 删除发件人
  * @param {*}
  * @return {*}
  */
   delEmailSender(data) {
    let url = '/reach/emailSenderInfoEntity/del'
    return request(url, data)
  }

  /**
  * @description: 设置默认发件人
  * @param {*}
  * @return {*}
  */
   setDefault(data) {
    let url = '/reach/emailSenderInfoEntity/setDefault'
    return request(url, data)
  }

  

  /**
  * @description: 新增邮件模板
  * @param {*}
  * @return {*}
  */
   addEmailTem(data) {
    let url = '/reach/reachMailTemplateEntity/save'
    return request(url, data)
  }

  /**
  * @description: 删除邮件模板
  * @param {*}
  * @return {*}
  */
   delEmailTemplate(data) {
    let url = '/reach/reachMailTemplateEntity/del'
    return request(url, data)
  }

  


  /**
  * @description: 查询触达规则
  * @param {*}
  * @return {*}
  */
   getReachCondition() {
    let url = '/reach/reachLimitRuleEntity/show'
    return request(url)
  }

  /**
  * @description: 保存触达规则
  * @param {*}
  * @return {*}
  */
   setReachCondition(data) {
    let url = '/reach/reachLimitRuleEntity/saveOrUpdateBatch'
    return request(url, data)
  }
  
}
export default new reachPipelineApi()